home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / DJDEV111.ZIP / bin / setdjgpp.bat < prev    next >
DOS Batch File  |  1993-11-13  |  994b  |  38 lines

  1. @echo off
  2.  
  3. if "%2" == "" goto error
  4.  
  5. set BISON_HAIRY=%2/lib/bison.hairy
  6. set BISON_SIMPLE=%2/lib/bison.simple
  7. set FLEX_SKELETON=%2/lib/flex.skeleton
  8. set COMPILER_PATH=%2/bin
  9. set C_INCLUDE_PATH=%2/include
  10. set CPLUS_INCLUDE_PATH=%2/cplusinc;%2/include
  11. set OBJC_INCLUDE_PATH=%2/include;%2/include/objc
  12. set OBJCPLUS_INCLUDE_PATH=%2/include;%2/include/objc
  13. set LIBRARY_PATH=%2/lib
  14.  
  15. set INFOPATH=%2/docs;%2/docs/djgpp
  16.  
  17. rem TMPDIR is where gcc puts its temp files, and should be a ramdrive
  18. if "%TMPDIR%" == "" set TMPDIR=%2/tmp
  19.  
  20. rem GO32TMP is where swapping happens, and should be a real drive
  21. if "%GO32TMP%" == "" set GO32TMP=%2/tmp
  22.  
  23. rem see documentation for values for this
  24. if "%GO32%" == "" set GO32=
  25.  
  26. goto exit
  27.  
  28. :error
  29. echo.
  30. echo You must call this with DJGPP's installation directory passed
  31. echo twice, first with DOS-style slashes, then with Unix-style
  32. echo slashes.  Example:
  33. echo.
  34. echo   c:\stuff\djgpp\setdjgpp c:\stuff\djgpp c:/stuff/djgpp
  35. echo.
  36.  
  37. :exit
  38.